use serde_json::json;
use reqwest::Client;

//TODO: need to fill up the param in ""
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new();
    let url = "";
    let api_key = "";

    let input_data = "";
    let request_body = json!({
        "input": input_data
    });

    let response = client.post(url)
        .header("Content-Type", "application/json")
        .header("Authorization", format!("Bearer {}", api_key))
        .body(request_body.to_string())
        .send()
        .await?;

    let response_text = response.text().await?;
    println!("{}", response_text);

    Ok(())
}
